import request from '@/utils/request'

// 查询专业建设情况列表
export function listConstruction(query) {
  return request({
    url: '/construction/construction/list',
    method: 'get',
    params: query
  })
}

// 查询专业建设情况详细
export function getConstruction(mcId) {
  return request({
    url: '/construction/construction/' + mcId,
    method: 'get'
  })
}

// 新增专业建设情况
export function addConstruction(data) {
  return request({
    url: '/construction/construction',
    method: 'post',
    data: data
  })
}

// 修改专业建设情况
export function updateConstruction(data) {
  return request({
    url: '/construction/construction',
    method: 'put',
    data: data
  })
}

// 删除专业建设情况
export function delConstruction(mcId) {
  return request({
    url: '/construction/construction/' + mcId,
    method: 'delete'
  })
}
